package com.work.captcha.model;

import jakarta.websocket.Session;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:DELL
 * Date:2025-05-21
 * Time:17:56
 */
@Component//注解
@ConfigurationProperties(prefix = "captcha")//从配置中拿值
@Data
public class CaptchaProperties {//定义对象
    private Integer width;
    private Integer height;
    private Session session;//定义session对象
    @Data
    public static class Session{//静态内部类
        private String key;
        private String date;
    }
}
